import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'cms',
  name: 'cms',
  component: RouterView,
  children: [
    {
      path: 'category',
      name: 'category_list',
      meta: {
        title: '分类列表'
      },
      component: () => import('@/views/cms/category/index.vue')
    },
    {
      path: 'articlelist',
      name: 'articlelist_list',
      meta: {
        title: '公告列表'
      },
      component: () => import('@/views/cms/articlelist/index.vue')
    },
    {
      path: 'contentlist',
      name: 'contentlist_list',
      meta: {
        title: '文章列表'
      },
      component: () => import('@/views/cms/contentlist/index.vue')
    }
  ]
}

export default routes
